package dir;

import java.io.File;

/**
 * @author wzby
 * @Date: 2022/8/1 16:50
 */
public class Dir5 {
    public static void main(String[] args) {
        File f1 =  new File("e:/uexdir/user");
        File[] fs = f1.listFiles(f -> f.getName().endsWith("jpg"));
        System.out.println(fs.length);
        for ( File t : fs){
            System.out.println(t.getAbsoluteFile());
        }
    }
}
